package online.inote.dic.model.dic;

import java.util.List;

import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;
import online.inote.dic.model.base.IdEntity;

/**
 * @description: 字典项
 * @author XQF.Sui
 * @created 2019年6月10日 下午10:24:32
 * @version 1.0
 */
@Data
@FieldNameConstants
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_dic_items")
public class DicItemEntity extends IdEntity {

	private static final long serialVersionUID = 3798453102300734777L;

	private String code;		// 字典项码值
	private String name;		// 字典项名称
	private boolean enable;		// 是否启用
	private Integer status; 	// 字典项状态
	private String type;		// 字典项类型
	private Integer level;		// 字典项等级
	private String sort;		// 排序序列
	private String systemId;	// 归属系统
		
	@Transient
	private List<DicItemEntity> subDicItemsList;	// 下级字典项
}